// pages/g200938.js
Page({
  /**
   * 页面的初始数据
   */
  data: {
    modalName: "",// 提示框flag
   color_card:[{
     name:"中国传统颜色（自配渐变）",
     colors:[
       "#FFB3A7",
       "#EF7A82",
       "#db5a6b",
       "#F05654",
       "#F20C00",
       
       "#faff72",
       "#fff143",
       "#ffa631",
       "#ff8936",
       "#ff7500",
      
       "#bce672",
       "#9ed900", 
       "#96ce54",
       "#48c0a3",       
       "#21a675",

       "#d2f0f4",
       "#70f3ff",
       "#3eede7",
       "#44cef6",
       "#177cb0",
     ]
   },
     {
       name: "中国传统颜色（测测你的眼力）",
       colors: [
         "#fcefe8",
         "#f2ecde",
         "#f3d3e7",
         "#edd1d8",
         "#e4c6d0",
         
         "#ffffff",
         "#fffbf0",
         "#d3e0f3",
         "#d1d9e0",
         "#c2ccd0",
         

         "#f0fcff",
         "#e3f9fd",
         "#d6ecf0",
         "#d2f0f4",
         "#7397ab",

         "#f3f9f1",
         "#e0f0e9",
         "#d4f2e7",
         "#88ada6",
         "#75878a",
        ]
      },
     ]
   },
   onLoad: function (options) {
   this.showModal()
   },
   showModal(e) {
     this.setData({
       modalName: 'Modal'
     })
   },
   hideModal(e) {
     this.setData({
       modalName: ''
     })
   },
   choice_color:function(e){
   // console.log(e.currentTarget.dataset.color)
     wx.navigateTo({
       url: 'g200939/g200939?color=' + JSON.stringify(e.currentTarget.dataset.color),
     })
   }
 })